package cn.tedu.online.day05;

import cn.tedu.online.day05.staticmethod.MathOpeClas;

public class AbsTest {
    public static int abs(int num, MathOpeClas mathOpeClas) {
        return mathOpeClas.getAbs(num);
    }

    public static void main(String[] args) {
//        int result = abs(-10,num -> Math.abs(num));
//        System.out.println(result);

//        int result = abs(-20,Math :: abs);
//        System.out.println(result);



            String str = "abc";
            String s = " ";
            char[] chars = str.toCharArray();
            for (int i = str.length()-1; i >= 0; i--) {

                s += chars[i];
            }

        System.out.println(s);
    }

}
